# $Id: PKGBUILD 65898 2012-02-22 13:28:36Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: William Rea <sillywilly@gmail.com>

pkgname=perl-net-snmp
pkgver=6.0.1
pkgrel=2
pkgdesc="Perl interface to SNMP"
arch=('any')
url="http://search.cpan.org/dist/Net-SNMP"
license=("PerlArtistic")
depends=('perl' 'perl-digest-hmac' 'perl-digest-sha1' 'perl-crypt-des')
source=(http://search.cpan.org/CPAN/authors/id/D/DT/DTOWN/Net-SNMP-v$pkgver.tar.gz)
md5sums=('6137f04f9942d703f66179f890e3d096')

build() {
  cd $srcdir/Net-SNMP-v$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
  make install DESTDIR=$pkgdir
  find $pkgdir -name '.packlist' -delete
  find $pkgdir -name '*.pod' -delete
}
